function hot(){
    return this;
}
var controlFns = {
    index : function(){
        var mSelf = this;
        //return mSelf.redirectTo('/user/login/', true);
        this.hotcontent();
    },
    hotcontent : function(args){

        if(args == 'cluelist'){
            this.cluelist();
        }else{
            var php = {
                'hotlist' : 'store::/topic/index',
                'topicinfo' : 'store::/topic/info'
            };
            var mSelf = this;
            this.setSDefault(php);
            this.bridgeMuch(php);
            this.listenOver(function(data){

                data.condition = this.req.__get;
                //console.log(data.condition);

                //data.groupPg = {};
                //data.groupPg.total_num = 2000;
                //data.groupPg.page_size = 10;
                //data.groupPg.current_page = page;

                data._CSSLinks = ['h5/css/hot'];
                data._JSLinks  = ['h5/min/hot'];
                data.pageTitle = '热点';
                mSelf.render('hot/hot.html', data);
            });
        }
    },

    cluelist : function(args){

        //参数格式id_xx
        if(args){
            var id = args.split('_')[1];
        }

        var php = {
            'cluelist' : 'store::/topic/info?id='+id
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;
            //console.log(data.condition);

            //data.groupPg = {};
            //data.groupPg.total_num = 2000;
            //data.groupPg.page_size = 10;
            //data.groupPg.current_page = page;

            data._CSSLinks = ['h5/css/cluelist'];
            data._JSLinks  = ['h5/min/cluelist'];
            data.pageTitle = '热点';
            mSelf.render('hot/cluelist.html', data);
        });
    },
    jeanscontent: function(){

        var php = {
            'jeanslist' : 'store::/site/index'
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;

            data.status = 'test';
            data.groupPg = {};

            data._CSSLinks = ['h5/css/jeans'];
            data._JSLinks  = ['h5/min/jeans'];
            data.pageTitle = '所有牛仔裤';
            mSelf.render('hot/jeans.html', data);
        });
    },
    jeancontent : function(args){

        //参数格式:type_id_imgNum

        if(args){
            var type = args.split('_')[0];
            var id = args.split('_')[1];
            var img = args.split('_')[2];
        }

        var php = {
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;
            //console.log(data.condition);

            data.status = 'test';
            data.groupPg = {};
            data.groupPg.type = type;
            data.groupPg.id = id;
            data.groupPg.img = img;
            //data.groupPg.page_size = 10;
            //data.groupPg.current_page = page;

            data._CSSLinks = ['h5/css/jean'];
            data._JSLinks  = ['h5/min/jean'];
            data.pageTitle = '牛仔';
            mSelf.render('hot/jean.html', data);
        });
    },
    hot_apis: function(params){
        var php = {
            'hotlist' : 'store::/topic/info'

        };
        this.ajaxTo(php[params]);
    }
};
exports.__create = controller.__create(hot , controlFns);
